s = r'../08 files/lesson8.py'
print(s)

s = 'Py' 'thon'
print(s)

s1 = 'Hello, '
s2 = 'world!'
s3 = s1 + s2
print(s3)

name = 'John'
age = 20

print('My name is ' + name + " I'm " + str(age))

print('hi ' * 5)

s4 = 'Hello world!'
print(s4[0])
print(s4[-12])
#s4[0] = 'D'
#print(s4)

'''
+---+---+---+---+---+---+---+---+---+---+---+---+
| H | e | l | l | o |   | w | o | r | l | d | ! |
+---+---+---+---+---+---+---+---+---+---+---+---+
0   1   2   3   4   5   6   7   8   9  10  11  12
-12 -11 -10 -9  -8  -7  -6  -5  -4  -3  -2 -1
'''
#[X:Y:Z]

s5 = 'Hello world!'

print(s5[0:7]) #Hello w
print(s5[-9]) #!
print(s5[0:5]) #Hello
print(s5[:5]) #Hello
print(s5[6:]) #world!
print(s5[::2]) #Hlowrd
print(s5[::-1]) #!dlrow olleH
print(s5[:2] + s5[6:9] + s5[11:]) #Helloworld!
